package com.lyf.mapper.admin;


import com.lyf.vo.OrderReportVO;
import com.lyf.vo.SalesTop10ReportVO;
import com.lyf.vo.TurnoverReportVO;
import com.lyf.vo.UserReportVO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.List;
@Mapper
public interface ReportMapper {
    /**
     * 营业额统计
     * @param begin
     * @param end
     * @return
     */
    List<TurnoverReportVO> turnoverStatistics(LocalDate begin, LocalDate end);

    /**
     * 用户统计
     * @param begin
     * @param end
     * @return
     */
    List<UserReportVO> userStatistics(LocalDate begin, LocalDate end);

    /**
     * 订单统计(每日)
     * @param begin
     * @param end
     * @return
     */
    List<OrderReportVO> orderStatistics(LocalDate begin, LocalDate end);

    List<SalesTop10ReportVO> top10(LocalDate begin, LocalDate end);
}
